# Create your views here.
#from django.http import HttpResponse
#from django.template import loader,Context
from django.shortcuts import render_to_response

class Person(object):
	def __init__(self,name,age,sex):
		self.name = name
		self.age = age
		self.sex = sex
	def say(self):
		return 'I am '+self.name

def index(req,id):
	usr = Person('tom',21,'male')
	book_list = ['python','php']
	return render_to_response('index.html',{'title':id,"user":usr,'book_list':book_list})
	return render_to_response('index.html',{'title':id,'book_list':book_list})
# def index(req,id):
# 	t = loader.get_template('index.html')
# 	c = Context({})
# 	return HttpResponse(t.render(c))
	